package ModelLayer;

/**
*
* @author DM79 group 5
* @version 2012.25.10
*/

public class Product {
	//instance variables
	private String productId;
	private String suppId;
	private String name;
	private String type;
	private int purchasePrice;
	private int salesPrice;
	private int rentPrice;
	private String countryOfOrigin;
	private int minStock;
	private String size;
	private String colour;
	private String eqType;
	private String description;
	private String fabric;
	private String calibre;
	private Supplier supplier;
	
	public Product(){
		
	}
	
	public Product(String productId){
		this.productId = productId;
	}
	
	public Product(String productId,String suppId,String name,String type,int purchasePrice,int salesPrice,
			int rentPrice,String countryOfOrigin,int minStock,String size,String colour,
			String eqType,String description,String fabric,String calibre, Supplier supplier){
		this.productId = productId;
		this.suppId = suppId;
		this.name = name;
		this.type = type;
		this.purchasePrice = purchasePrice;
		this.salesPrice = salesPrice;
		this.rentPrice = rentPrice;
		this.countryOfOrigin = countryOfOrigin;
		this.minStock = minStock;
		this.size = size;
		this.colour = colour;
		this.eqType = eqType;
		this.description = description;
		this.fabric = fabric;
		this.calibre = calibre;
		this.supplier = supplier;
	}	

	//set methods
	public void setProductId(String productId){
		this.productId = productId;
	}
	public void setSuppId(String suppId){
		this.suppId = suppId;		
	}
	public void setName(String name){
		this.name = name;
	}
	public void setType(String type){
		this.type = type;
	}
	public void setPurchasePrice(int purchasePrice){
		this.purchasePrice = purchasePrice;  
	}
	public void setSalesPrice(int salesPrice){
		this.salesPrice = salesPrice;
	}
	public void setRentPrice(int rentPrice){
		this.rentPrice = rentPrice;
	}
	public void setCountryOfOrigin(String countryOfOrigin){
		this.countryOfOrigin = countryOfOrigin;
	}
	public void setMinStock(int minStock){
		this.minStock = minStock;
	}
	public void setSize(String size){
		this.size = size;
	}
	public void setColour(String colour){
		this.colour = colour;
	}
	public void setEqType(String eqType){
		this.eqType = eqType;
	}
	public void setDescription(String description){
		this.description = description;
	}
	public void setFabric(String fabric){
		this.fabric = fabric;
	}
	public void setCalibre(String calibre){
		this.calibre = calibre;
	}
	public void setSupplier(Supplier supplier) {
		this.supplier = supplier;
	}
	
	//get methods
	public String getProductId(){
		return productId;
	}
	public String getSuppId(){
		return suppId;
	}
	public String getName(){
		return name;
	}
	public String getType(){
		return type;
	}
	public int getPurchasePrice(){
		return purchasePrice;
	}
	public int getSalesPrice(){
		return salesPrice;
	}
	public int getRentPrice(){
		return rentPrice;
	}
	public String getCountryOfOrigin(){
		return countryOfOrigin;
	}
	public int getMinStock(){
		return minStock;
	}
	public String getSize(){
		return size;
	}
	public String getColour(){
		return colour;
	}
	public String getEqType(){
		return eqType;
	}
	public String getDescription(){
		return description;
	}
	public String getFabric(){
		return fabric;
	}
	public String getCalibre(){
		return calibre;
	}	
	public Supplier getSupplier() {
		return supplier;
	}
}
